package com.mdlaser.sys.controller;


import com.mdlaser.annotation.CommonRest;
import com.mdlaser.sys.entity.User;
import com.mdlaser.sys.service.IUserService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author zn
 * @since 2024-04-04
 */
@RestController
@RequestMapping("/user")
@CommonRest
@Tag(name = "用户管理")
public class UserController {

    @Autowired
    IUserService userService;

    @Operation(summary = "新增用户")
    @PostMapping("/addUser")
    public void addUser(@RequestBody User user){
        userService.addUser(user);
    }




}
